package com.atguigu.gmall.jvm;

/**
 * @author 陈昆昆
 * @version 1.0
 * @date 2020/6/5 12:26
 */
public class DuiTest1 {
    public static void main(String[] args) {
        long total = Runtime.getRuntime().totalMemory() / 1024 / 1024;
        long max = Runtime.getRuntime().maxMemory() / 1024 / 1024;
        System.out.println(total);
        System.out.println(max);
//        System.out.println("程序开始了");
//        try {
//            Thread.sleep(1000000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
//        System.out.println("程序结束了");
    }
}
